import { ApiGenerator } from 'jws-tools-vue';

const apiv1 = new ApiGenerator("https://api.jiuwusan.cn/api", { //异常处理
    interceptors: (options) => {
        console.log("interceptors==", options);
    },
    onError: (error) => {
        console.log("请求错误==", error);
    }
});

/**
 * 用户相关
 */
export const userApi = apiv1.genApi({
    //登录
    login: 'POST /auth/login',
    //获取签到列表
    getSignDataList: 'POST /sexual/getDataList'
});